package com.newtouch.serviceconsumerhystrix;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name="service-hello", fallbackFactory = ServiceHelloFallbackFactory.class) // 采用了Fallback工厂模式
//@FeignClient(name="service-hello", fallback = ServiceHelloFallback.class) // // 采用Fallback方法
public interface ServiceHelloInterface {

    @RequestMapping(method = RequestMethod.GET, value = "/")
    String sayHello();

}